package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import com.xbongbong.pro.businesstage.pojo.SortPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 阶段任务排序
 * @author 李少杰
 * @version v1.0.0
 * @date 2021/12/3 14:15
 */
@Getter
@Setter
@ToString
public class StageWorkSortDTO extends BaseDTO {


    @NotNull(message = "{dto.msg.processEnable.formId.NotNull}")
    private Long formId;

    @DecimalMin(value = "1", message = "{dto.msg.processEnable.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.processEnable.saasMark.DecimalMax}")
    @NotNull(message = "{dto.msg.processEnable.saasMark.NotNull}")
    private Integer saasMark;

    private Integer businessType;

    /**
     * 阶段id
     */
    @NotNull(message = "{dto.msg.stageProcessEnable.stageProcessId.NotNull}")
    private Long stageId;

    /**
     * 排序列表
     */
    @NotNull(message = "{dto.msg.stageSort.sortList.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private List<SortPojo> sortList;
}
